package com.yuncheng.spcyApi.service.impl;

import com.yuncheng.spcyApi.entity.SpcyZltxwjType;
import com.yuncheng.spcyApi.mapper.SpcyZltxwjTypeMapper;
import com.yuncheng.spcyApi.service.ISpcyZltxwjTypeService;
import com.yuncheng.spcyApi.vo.common.ZltxwjTreeVo;
import org.springframework.stereotype.Service;

import com.yuncheng.common.base.service.impl.BaseServiceImpl;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description: 审评查验-质量体系文件-类型
 * @Author: yuncheng
 * @Date: 2023-07-05
 * @Version: V1.0
 */
@Service
public class SpcyZltxwjTypeServiceImpl extends BaseServiceImpl<SpcyZltxwjTypeMapper, SpcyZltxwjType> implements ISpcyZltxwjTypeService {

    @Resource
    private SpcyZltxwjTypeMapper spcyZltxwjTypeMapper;

    @Override
    public List<ZltxwjTreeVo> selectAllType(String type) {
        return spcyZltxwjTypeMapper.selectAllType(type);
    }

    @Override
    public List<ZltxwjTreeVo> selectTypeByParentId(String parentId) {
        return spcyZltxwjTypeMapper.selectTypeByParentId(parentId);
    }

    @Override
    public List<String> selectZltxwjByTypeId(String ftypeid) {
        return spcyZltxwjTypeMapper.selectZltxwjByTypeId(ftypeid);
    }

    @Override
    public List<String> selectChildTypeListById(String fparentid) {
        return spcyZltxwjTypeMapper.selectChildTypeListById(fparentid);
    }
}
